import re


def main():
    data = open(r'G:\Text3.txt', 'r', encoding='UTF-8').readlines()
    # data = [re.sub('^[\d\t]+', '', line.strip()) for line in data]
    # data = [re.sub('生成的句子： ', '', line.strip()) for line in data]
    file = open(r'G:\outfile2.txt', 'w', encoding='UTF-8')
    for i in data:
        file.write('\n' + i)
    file.close()


if __name__ == '__main__':
    main()
